-- GENERATED SPELL FOR [Vengeful Unyielding Captain] --


function spell0_19864(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19864', 613, 1)
end

function Sorts_19864(pUnit, Event)
local choix_sorts_19864 = math.random(0, 0)
if choix_sorts_19864 == 0 then
pUnit:RegisterEvent('spell0_19864', 1, 1)
end
end

function mob19864_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19864', math.random(1500, 3000), 1)
end

function mob19864_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19864_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19864_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19864, 1, 'mob19864_Action')
RegisterUnitEvent(19864, 2, 'mob19864_Leave')
RegisterUnitEvent(19864, 3, 'mob19864_Kill')
RegisterUnitEvent(19864, 4, 'mob19864_Die')
